<!--
 * @Date         : 2024-03-01 20:29:20
 * @LastEditTime : 2024-07-31 22:15:26
 * @description  : 
-->
<script setup>
import router from "@/router";
import { clearAllSession } from "@/utils/auth";
import TheWelcome from "../components/TheWelcome.vue";
const ruleFormRef = ref();
let timeout = "";
const form = reactive({
  account: "",
  paw: "",
});
const rules = reactive({
  account: [{ required: true, message: "请输入账号", trigger: "blur" }],
  paw: [{ required: true, message: "请输入密码", trigger: "blur" }],
});
// 登录
const onSubmit = async (formEl) => {
  if (!formEl) return;
  console.log(formEl);
  await formEl.validate((valid, fields) => {
    if (valid) {
      router.replace("/notice");
    } else {
      console.log("error submit!", fields);
    }
  });
};
onMounted(() => {
  timeout = setTimeout(() => {
    // clearAllSession();
    router.replace("/login");
  }, 15000);
});
const isyydt = import.meta.env.VITE_API_DEV_ENV;
</script>
<template>
  <div class="Result" v-show="isyydt=='yydt'"> 
    <div>
      <h3>中药处方审核考试</h3>
      <!-- <h4>点击查看考试结果</h4> -->
    </div>
    <!-- <p >15秒后自动返回</p> -->
    <!-- <p>考试结束 祝您成功!</p> -->
    <!-- <h1>请不要关机!</h1> -->
    <h1>提交成功!</h1>
  </div>
  <div class="Result" v-show="isyydt=='zcydt'"> 
    <div>
      <h3>中成药介绍考试</h3>
      <!-- <h4>点击查看考试结果</h4> -->
    </div>
    <!-- <p >15秒后自动返回</p> -->
    <!-- <p>考试结束 祝您成功!</p> -->
    <!-- <h1>请不要关机!</h1> -->
    <h1>提交成功!</h1>
  </div>
</template>
<style lang="scss">
.Result {
  min-width: 100vw;
  height: 100%;
  background-image: url("@/assets/background.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 50px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 4px;
  h3 {
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 500;
    font-size: 37px;
    color: #970702;
    text-align: center;
    font-weight: 800;
  }
  h4 {
    margin-top: 20px;
    font-weight: 500;
    font-size: 28px;
    color: #ff0000;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
  }
  p {
    height: 38px;
    font-weight: 600;
    font-size: 28px;
    color: #652e1b;
    text-align: center;
  }
  h1 {
    font-family: Source Han Sans CN, Source Han Sans CN;
    font-weight: 800;
    font-size: 45px;
    margin-top: 50px;
    color: #ff0000;
    text-align: center;
  }
}
</style>
